﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CRMS.Models
{
  public class UseClassroomInfo
    {
      private Classroom cr = null;
      private TeachingBuilding tb = null;
      private Course c = null;
      private TeacherCourse tc = null;
      private ToUseClassroom tuc = null;

      public UseClassroomInfo(Classroom cr, TeachingBuilding tb,Course c,TeacherCourse tc,ToUseClassroom tuc)                       
      {
          this.cr = cr;
          this.tb = tb;
          this.c = c;
          this.tc = tc;
          this.tuc = tuc;
      }
      //获取教学楼名称
      public string TeachingBuildingName
      {
          get
          {
              return tb.TeachingBuildingName;
          }
      }
      //获取教室所在楼层
      public string Floor
      {
          get
          {
              return cr.Floor;
          }
      }
      //获取教室编号
      public int ClassroomId
      {
          get
          {
              return cr.ClassroomId;
          }
      }
      
     
      //获取使用教室的星期
      public string Weekday 
      {
          get
          {
             return tc.Weekday;
          }
      }
      //获取教室使用的时间段
      public string Period
      {
          get
          {
              return tc.Period;
          }
      }
    
      //获取课程名
      public string CourseName 
      {
          get
          {
              return tc.Course.CourseName;
          }
         
      }
      //返回教室的用途
      public string  Use 
      {
          get
          {
              return tuc.UseAs;
          }
          
      }

    }
}
